package com.sven.media.utils;

import android.os.Environment;

import java.io.File;

public class SdCardUtil {
	public static String getSDPath() {
		File sdDir = null;
		boolean sdCardExist = Environment.getExternalStorageState().equals(
				Environment.MEDIA_MOUNTED); // 判断sd卡是否存在
		if (sdCardExist) {
			sdDir = Environment.getExternalStorageDirectory();// 获取根目录
		}
		assert sdDir != null;
		return sdDir.toString();
	}
}
